import {createApp, ref} from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import router from '@/router/router.js'
import store from "@/store/index.js";
import '@/assets/main.css';

const app = createApp(App);
app.use(ElementPlus); // 引入ElementPlus
app.use(router)
app.use(store)
// 注册ElementPlus的图标库
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.mount('#app')
